const express = require('express');
const expressStatic = require( 'express-static' );
const bodyparser = require( 'body-parser' );
var server = express();

server.listen(8080);

//链式操作
server.use('/',function(req,res,next){
    console.log('a');


    next();  //调用next() 表示需要下一步
});

server.use('/',function(req,res,next){
    console.log('b');
});